/**
 * create by young (young2f@outlook.com) on 2023/6/27
 */
'use strict';
const _stringUtils = require('../utils/stringUtils');

module.exports = class {
    constructor(app) {
        this.app = app;
    }

    getDeviceId(device) {
        const {deviceSpecCode='', deviceCode, tenantCode} = device;
        return _stringUtils.getDevId(deviceSpecCode, deviceCode) + '/' + tenantCode;
    }
};
